//pack11jsclass

var ObjectsManager=new objectsManager();

function objectsManager() {
    
    this.objects=new Array();
    this.objectsDone=false;

    this.init = function() {
        element=document.getElementById("ObjectsList");
        this.objects=element.value.split(",");
        this.objectsDone=true;
    }

    this.useObjects = function(action) {
        if(!this.objectsDone) this.init();
        form=document.getElementById("Objects");
        form.action="?state="+action;
        form.submit();
    }
	
}